

const activeType = [
    {label:'查询',value:'1',type:'success'},
    {label:'办理',value:'2',type:'primary'},
]
const loginType = [
    {label:'H5',value:'1',type:'success'},
    {label:'小程序',value:'2',type:'primary'},
]
const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{
			label: 'id',
			prop: 'id',
		},
		{
			label: '操作地址',
			prop: 'checkUrl',
		},
		{
			label: '操作内容',
			prop: 'checkContent',
		},
		{
			label: '登陆人姓名',
			prop: 'loginUserName',
		},
		{
			label: '登陆人手机号',
			prop: 'loginUser',
		},
		{
			label: '操作类型',
			prop: 'operateType',
            // propName:'reservationStateLabel',
            type:"select",
            custome:'tag',
            dicData:activeType
		},
		{
			label: '登陆方式',
			prop: 'source',
			type:"select",
            custome:'tag',
            dicData:loginType
		},
		{
			label: '上链状态',
			prop: 'onBlockchainFlag',
			api: 'geiDictItemList',
			type: 'select',
			custome:'tag',
			code: 'BLOCK_CHAIN_STATUS',
			defaultValue:'1'
		},
	],
}
const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '操作地址',
			prop: 'checkUrl',
			type:'input',
			span: 8,
		},
		{
			label: '操作内容',
			prop: 'checkContent',
			type:'input',
			span: 8,
		},
		{
			label: '登陆人姓名',
			prop: 'loginUserName',
			type:"input",
			span: 8,
		},
		{
			label: '登陆人手机号',
			prop: 'loginUser',
			type:"input",
			span: 8
		},
		{
			label: '操作类型',
			prop: 'operateType',
            // propName:'reservationStateLabel',
            type:"select",
            custome:'tag',
            dicData:activeType,
			span: 8,
		},
		{
			label: '登陆方式',
			prop: 'source',
			type:"select",
            custome:'tag',
            dicData:loginType,
			span: 8,
		},
	],
}
export const baseConfig: any = {
	pageName: '用户查询记录',
	addLabel: '添加',
	dictcodes:['BLOCK_CHAIN_STATUS'],
	rowKey: 'id',
	tipLabel: 'checkContent',
	api: {
		index: 'view_bscOperateLog_page',
	},
	auth: {
		index: 'view_bscOperateLog_page',
	},

	menuBtn: [
		
	],
	dialogConfig: {
		width: '65%',
	},
	searchConfig,
	tableConfig,
}
